home *** CD-ROM | disk | FTP | other *** search
/ Cream of the Crop 21 / Cream of the Crop 21 (Terry Blount) (October 1996).iso / windows / mhtsk20e.zip / INST.INF < prev    next >
Text File  |  1996-08-17  |  3KB  |  107 lines

  1. //
  2. // Setup Installation File
  3. // Created by Setup Builder Version 3.07
  4. //
  5. // Copyright 1993, 1994 G.Plowman
  6. //
  7. // Created: 17-08-1996 at 17:46:47
  8. //
  9.  
  10.  
  11.  
  12. // Application Variables
  13. SET %Caption%="MH-Task 2.0 Setup"
  14. SET %Application%="MH-Task 2.0"
  15. SET %InstallPath%="C:\MH_TASK"
  16. SET %InstallDrive%="C:"
  17.  
  18.  
  19. // Welcome Dialog
  20. :BACK
  21. SET %Message1%="Welcome to the %Application% Installation Program."
  22. SET %Message2%="This program will install the %Application% software in the directory you specify on your hard disk."
  23. DialogBox("Welcome")
  24. IF %ERROR% == IDCANCEL GOTO :EXIT
  25.  
  26.  
  27. // Ask the user where to install the software
  28. :RETRY
  29. SET %Message1%="The install program will copy the %Application% files into the following directory:"
  30. DialogBox("AskPath")
  31. IF %ERROR% == IDBACK GOTO :BACK
  32. IF %ERROR% == IDCANCEL GOTO :EXIT
  33.  
  34.  
  35.  
  36.  
  37. // Make sure we still have Disk #01 in the drive
  38. CheckExists("%CurrentDrive%DISK01", "Please insert the diskette labelled 'DISK01'")
  39. IF %ERROR% == IDCANCEL GOTO :EXIT
  40.  
  41.  
  42. // Copy files from disk & show in gauge - no usage or overwrite check
  43. CopyFile(12)
  44. "BWCC.DLL", "%InstallPath%", "Copying:"
  45. "CTL3D.DLL", "%InstallPath%", "Copying:"
  46. "FILE_ID.DIZ", "%InstallPath%", "Copying:"
  47. "LICENCE.TXT", "%InstallPath%", "Copying:"
  48. "MH_F.DLL", "%InstallPath%", "Copying:"
  49. "MH_TASK2.EXE", "%InstallPath%", "Copying:"
  50. "PROGRAMS.EXE", "%InstallPath%", "Copying:"
  51. "README.WRI", "%InstallPath%", "Copying:"
  52. "REGISTER.EXE", "%InstallPath%", "Copying:"
  53. "REGISTER.WRI", "%InstallPath%", "Copying:"
  54. "SEARCH.EXE", "%InstallPath%", "Copying:"
  55. "START.EXE", "%InstallPath%", "Copying:"
  56.  
  57.  
  58.  
  59.  
  60. // Now setup a new program manager group and its icons
  61. MessageBox("Setup can create a Program Manager group|for the %Application% application.||Do you wish to create a Program|Manager group and icons ?", "%Caption%", MB_YESNO, MB_ICONQUESTION)
  62. IF %ERROR% == IDNO GOTO :NOPMGROUP
  63.  
  64. MakeGroup("%Application%", "")
  65. MakeIcon("MH-Task Version 2.0", "%InstallPath%MH_TASK2.EXE ")
  66. MakeIcon("README.WRI", "%InstallPath%README.WRI ")
  67. MakeIcon("Registration program", "%InstallPath%REGISTER.EXE ")
  68. MakeIcon("REGISTER.WRI", "%InstallPath%REGISTER.WRI ")
  69. MakeGroup("Autostart", "")
  70. MakeIcon("MH-Task Version 2.0", "%InstallPath%MH_TASK2.EXE ")
  71. :NOPMGROUP
  72.  
  73.  
  74. // Done
  75. :SUCCESS
  76. SET %Message1%="|%Application% installation has been successfully completed."
  77. SET %Message2%=""
  78. DialogBox("OkBox")
  79. GOTO :END
  80.  
  81.  
  82. // User decided to quit
  83. :EXIT
  84. SET %Message1%="Installation has been terminated. You should rerun this installation program at a later time to install %Application%."
  85. SET %Message2%="|The %Application% software has not been installed."
  86. DialogBox("OkBox")
  87. GOTO :END
  88.  
  89.  
  90. // Error
  91. :ERROR
  92. SET %Message1%="An error occured during installation of the %Application% software."
  93. SET %Message2%="|The %Application% software has not been fully installed."
  94. DialogBox("OkBox")
  95. GOTO :END
  96.  
  97.  
  98. // Not enough disk space
  99. :NOSPACE
  100. SET %Message1% = "|There is not enough space on the selected drive to install the %Application% software."
  101. SET %Message2% = ""
  102. DialogBox("OkBox")
  103. GOTO :RETRY
  104.  
  105.  
  106. :END
  107.